package itsm.isperp.framework.upload;

import javax.servlet.http.HttpServletRequest;

/**
 * 文件上传检测器.
 * <p>
 * 检测是否允许执行本次文件上传操作.
 * </p>
 */
public interface UploadChecker {
	/**
	 * 检测本次文件上传操作是否允许.
	 * 
	 * @param request
	 *            包含文件上传请求的HttpServletRequest对象
	 * @param uploadPreference
	 *            文件上传属性
	 */
	public void check(HttpServletRequest request,
			UploadPreference uploadPreference);

}
